<%@ page import="java.util.*" language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="neil.tag.date-tag" prefix="date-tag" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="common" %>
<%@ taglib uri="tag.forEach" prefix="n" %>
<%@ taglib uri="http://neil.org/tag/core" prefix="d" %>

<%@ include file="../header.html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%! int i = 10; 
		public void sayHello(){
			System.out.print("hello");
		}
	%>
	call sayHello method which defined in jsp statement <br/>
	<%
		sayHello();
	%>
	output variable here <br/>
	<%= i %>
	<jsp:include page="../footer.jsp">
		<jsp:param value="123" name="tel"/>
	</jsp:include>
	<hr></hr>
	<common:input-date></common:input-date>
	<br/>
	<date-tag:date-tag year="2009" month="12" day="08"></date-tag:date-tag>
	<br></br>
	<c:set var="i" value="10"></c:set>
	<c:choose>
		<c:when test="${i == 10}">
			<c:out value="1=1"></c:out>
		</c:when>
		<c:otherwise>
			<c:out value="1!=1"></c:out>
		</c:otherwise>
	</c:choose>
	<hr/>
	<jsp:useBean id="user1" class="org.yuchen.domain.User" scope="request">
		<jsp:setProperty name="user1" property="username" value="Hackiller"/>  
		<jsp:setProperty name="user1" property="password" value="123"/>  
	</jsp:useBean>
	<jsp:useBean id="user2" class="org.yuchen.domain.User" scope="request">
		<jsp:setProperty name="user2" property="username" value="tom"/>  
		<jsp:setProperty name="user2" property="password" value="456"/>  
	</jsp:useBean>
	<%
		List list = new ArrayList();
		list.add(user1);
		list.add(user2);
		pageContext.setAttribute("userList",list);
	%>
	<n:forEach collection="userList" id="uservo">
		<n:getProperty name="uservo" property="username"/>
		<n:getProperty name="uservo" property="password"/>
	</n:forEach>
	
	<hr/>
	
	3 + 5 = ${n:add(3,5) }
	
	
	<hr></hr>
	
	<d:date year="2009" month="12" day="08">
		this is a tag body
	</d:date>
</body>
</html>